package com.bwie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.pojo.TbUnit;
import com.bwie.service.TbUnitService;
import com.bwie.mapper.TbUnitMapper;
import com.bwie.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author andy
* @description 针对表【tb_unit(单位表)】的数据库操作Service实现
* @createDate 2025-05-26 16:48:15
*/
@Service
public class TbUnitServiceImpl extends ServiceImpl<TbUnitMapper, TbUnit>
    implements TbUnitService{

    @Autowired
    TbUnitMapper tbUnitMapper;

    @Override
    public Result getUnitListAll() {

        List<TbUnit> tbUnits = tbUnitMapper.selectList(null);

        return Result.ok().setData(tbUnits);
    }
}




